<h2>Publish Entry</h2>
<?php echo anchor('blogadmin/unpublish','<button>Unpublish</button>');?>
<table cellpadding="1" class="datatable">
  <tr>
    <th>Entry Name</th>
    <th>Entry Basename</th>
    <th>Etry Parent Category</th>
    <th>Entry Author</th>
    <th>Publish</th>
  </tr>
  <?php if($records){?>
  <?php foreach ($records as $row){?>
  <tr>
    <td><?php echo $row->entry_name; ?></td>
    <td><?php echo $row->entry_basename;?></td>
    <td><?php echo $row->category_name;?></td>
    <td><?php echo $row->entry_author;?></td>
    <td><?php echo anchor("blogadmin/publishentry/$row->entry_id","<button>Publish</button>");?></td>
  </tr>
  <?php }
  }
  ?>
</table>
<?php echo anchor('blogadmin/unpublish','<button>Unpublish</button>');?>

